package com.project.logistics.service.imp;

import com.project.logistics.bean.Evaluate;
import com.project.logistics.mapper.ApplicantMapper;
import com.project.logistics.service.ApplicantService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ApplicantServiceImpl implements ApplicantService {
    @Autowired
    ApplicantMapper applicantMapper;

    @Override
    public void updatePassword(String newPassword,String userId){
        applicantMapper.updatePassword(newPassword,userId);
    }

    @Override
    public List<Evaluate> getComments(String userId){
        return applicantMapper.getComments(userId);
    }

    @Override
    public Evaluate getCommentById(String repairsId){
        return applicantMapper.getCommentById(repairsId);
    }

}
